﻿namespace _5._5._02.IfStatementRefactoring
{
    using System;

    internal class Potato
    {
        private bool hasBeenPeeled;
        private bool isNotRotten;

        public Potato(bool isPeeled = false, bool isNotRotten = true)
        {
            this.HasBeenPeeled = isPeeled;
            this.IsNotRotten = isNotRotten;
        }

        internal bool HasBeenPeeled
        {
            get
            {
                return this.hasBeenPeeled;
            }

            private set
            {
                this.hasBeenPeeled = value;
            }
        }

        internal bool IsNotRotten 
        {
            get
            {
                return this.isNotRotten;
            }

            private set
            {
                this.isNotRotten = value;
            }
        }
    }
}